3.4 \(\int \frac{\left (A+B x+C x^2\right ) \left (a+b x^2+c x^4\right )}{x} \, dx\)

Optimal. Leaf size=65 \[ \frac{1}{2} x^2 (a C+A b)+a A \log (x)+a B x+\frac{1}{4} x^4 (A c+b C)+\frac{1}{3} b B x^3+\frac{1}{5} B c x^5+\frac{1}{6} c C x^6 \]

[Out]

a*B*x + ((A*b + a*C)*x^2)/2 + (b*B*x^3)/3 + ((A*c + b*C)*x^4)/4 + (B*c*x^5)/5 +
(c*C*x^6)/6 + a*A*Log[x]

_______________________________________________________________________________________

Rubi [A]  time = 0.0849859, antiderivative size = 65, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.038 \[ \frac{1}{2} x^2 (a C+A b)+a A \log (x)+a B x+\frac{1}{4} x^4 (A c+b C)+\frac{1}{3} b B x^3+\frac{1}{5} B c x^5+\frac{1}{6} c C x^6 \]

Antiderivative was successfully verified.

[In]  Int[((A + B*x + C*x^2)*(a + b*x^2 + c*x^4))/x,x]

[Out]

a*B*x + ((A*b + a*C)*x^2)/2 + (b*B*x^3)/3 + ((A*c + b*C)*x^4)/4 + (B*c*x^5)/5 +
(c*C*x^6)/6 + a*A*Log[x]

_______________________________________________________________________________________

Rubi in Sympy [F]  time = 0., size = 0, normalized size = 0. \[ A a \log{\left (x \right )} + \frac{B b x^{3}}{3} + \frac{B c x^{5}}{5} + \frac{C c x^{6}}{6} + a \int B\, dx + x^{4} \left (\frac{A c}{4} + \frac{C b}{4}\right ) + \left (A b + C a\right ) \int x\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((C*x**2+B*x+A)*(c*x**4+b*x**2+a)/x,x)

[Out]

A*a*log(x) + B*b*x**3/3 + B*c*x**5/5 + C*c*x**6/6 + a*Integral(B, x) + x**4*(A*c
/4 + C*b/4) + (A*b + C*a)*Integral(x, x)

_______________________________________________________________________________________

Mathematica [A]  time = 0.030041, size = 65, normalized size = 1. \[ \frac{1}{2} x^2 (a C+A b)+a A \log (x)+a B x+\frac{1}{4} x^4 (A c+b C)+\frac{1}{3} b B x^3+\frac{1}{5} B c x^5+\frac{1}{6} c C x^6 \]

Antiderivative was successfully verified.

[In]  Integrate[((A + B*x + C*x^2)*(a + b*x^2 + c*x^4))/x,x]

[Out]

a*B*x + ((A*b + a*C)*x^2)/2 + (b*B*x^3)/3 + ((A*c + b*C)*x^4)/4 + (B*c*x^5)/5 +
(c*C*x^6)/6 + a*A*Log[x]

_______________________________________________________________________________________

Maple [A]  time = 0.004, size = 60, normalized size = 0.9 \[{\frac{cC{x}^{6}}{6}}+{\frac{Bc{x}^{5}}{5}}+{\frac{A{x}^{4}c}{4}}+{\frac{C{x}^{4}b}{4}}+{\frac{bB{x}^{3}}{3}}+{\frac{A{x}^{2}b}{2}}+{\frac{C{x}^{2}a}{2}}+aBx+aA\ln \left ( x \right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((C*x^2+B*x+A)*(c*x^4+b*x^2+a)/x,x)

[Out]

1/6*c*C*x^6+1/5*B*c*x^5+1/4*A*x^4*c+1/4*C*x^4*b+1/3*b*B*x^3+1/2*A*x^2*b+1/2*C*x^
2*a+a*B*x+a*A*ln(x)

_______________________________________________________________________________________

Maxima [A]  time = 0.700626, size = 74, normalized size = 1.14 \[ \frac{1}{6} \, C c x^{6} + \frac{1}{5} \, B c x^{5} + \frac{1}{3} \, B b x^{3} + \frac{1}{4} \,{\left (C b + A c\right )} x^{4} + B a x + \frac{1}{2} \,{\left (C a + A b\right )} x^{2} + A a \log \left (x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^4 + b*x^2 + a)*(C*x^2 + B*x + A)/x,x, algorithm="maxima")

[Out]

1/6*C*c*x^6 + 1/5*B*c*x^5 + 1/3*B*b*x^3 + 1/4*(C*b + A*c)*x^4 + B*a*x + 1/2*(C*a
 + A*b)*x^2 + A*a*log(x)

_______________________________________________________________________________________

Fricas [A]  time = 0.255305, size = 74, normalized size = 1.14 \[ \frac{1}{6} \, C c x^{6} + \frac{1}{5} \, B c x^{5} + \frac{1}{3} \, B b x^{3} + \frac{1}{4} \,{\left (C b + A c\right )} x^{4} + B a x + \frac{1}{2} \,{\left (C a + A b\right )} x^{2} + A a \log \left (x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^4 + b*x^2 + a)*(C*x^2 + B*x + A)/x,x, algorithm="fricas")

[Out]

1/6*C*c*x^6 + 1/5*B*c*x^5 + 1/3*B*b*x^3 + 1/4*(C*b + A*c)*x^4 + B*a*x + 1/2*(C*a
 + A*b)*x^2 + A*a*log(x)

_______________________________________________________________________________________

Sympy [A]  time = 1.16242, size = 63, normalized size = 0.97 \[ A a \log{\left (x \right )} + B a x + \frac{B b x^{3}}{3} + \frac{B c x^{5}}{5} + \frac{C c x^{6}}{6} + x^{4} \left (\frac{A c}{4} + \frac{C b}{4}\right ) + x^{2} \left (\frac{A b}{2} + \frac{C a}{2}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((C*x**2+B*x+A)*(c*x**4+b*x**2+a)/x,x)

[Out]

A*a*log(x) + B*a*x + B*b*x**3/3 + B*c*x**5/5 + C*c*x**6/6 + x**4*(A*c/4 + C*b/4)
 + x**2*(A*b/2 + C*a/2)

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.278075, size = 81, normalized size = 1.25 \[ \frac{1}{6} \, C c x^{6} + \frac{1}{5} \, B c x^{5} + \frac{1}{4} \, C b x^{4} + \frac{1}{4} \, A c x^{4} + \frac{1}{3} \, B b x^{3} + \frac{1}{2} \, C a x^{2} + \frac{1}{2} \, A b x^{2} + B a x + A a{\rm ln}\left ({\left | x \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^4 + b*x^2 + a)*(C*x^2 + B*x + A)/x,x, algorithm="giac")

[Out]

1/6*C*c*x^6 + 1/5*B*c*x^5 + 1/4*C*b*x^4 + 1/4*A*c*x^4 + 1/3*B*b*x^3 + 1/2*C*a*x^
2 + 1/2*A*b*x^2 + B*a*x + A*a*ln(abs(x))